package com.xiaodu.acer.phoneplay.di.module;

import android.app.Application;

import com.xiaodu.acer.phoneplay.data.AppManagerModel;
import com.xiaodu.acer.phoneplay.presenter.contract.AppManagerContract;

import dagger.Module;
import dagger.Provides;
import retrofit2.Retrofit;


@Module()
public class AppManagerModule {


    private AppManagerContract.View mView;

    public AppManagerModule(AppManagerContract.View view) {
        this.mView = view;
    }


    @Provides
    public AppManagerContract.View provideView() {
        return mView;
    }


    @Provides
    public AppManagerContract.Model provideModel(Application application, Retrofit retrofit) {

        return new AppManagerModel(application, retrofit);
    }


}
